package com.markerhub.exception.apiException.authenticationException;

import com.markerhub.constant.ApiExceptionCodes;
import com.markerhub.exception.apiException.AuthenticationException;
import com.markerhub.exception.apiException.AuthenticationException;

/**
 * token过期异常类
 *
 * @author Ma Xiaofeng
 * @date : Created in 2021/11/22
 **/
public class JwtExpiredException extends AuthenticationException {
    public JwtExpiredException() {
        super(ApiExceptionCodes.TOKEN_EXPIRED.getValue(),ApiExceptionCodes.TOKEN_EXPIRED.getDesc());
    }

    public JwtExpiredException(String message) {
        super(ApiExceptionCodes.TOKEN_EXPIRED.getValue(),message);
    }
}
